package com.wh.usercenter3.constant;

import lombok.Getter;

/**
 * 自定义状态码 枚举类
 */
@Getter
public enum CodeConstant {

    OK(Code.OK,"操作成功"),
    CLIENT_ERR(Code.CLIENT,"客户端错误"),
    SERVICE_ERR(Code.SERVICE,"服务器错误");

    private final Code code;
    private final String message;

    CodeConstant(Code code, String message) {
        this.code = code;
        this.message = message;
    }
}
